package com.huike.business.domain.service;

import com.huike.business.domain.TbBusiness;
import com.huike.business.domain.TbBusinessTrackRecord;
import com.huike.business.domain.vo.BusinessTrackVo;
import com.huike.clues.domain.vo.AssignmentVo;

import java.util.List;

public interface TbBusinessService {
    List<TbBusiness> selectUserList(TbBusiness user);

    List<TbBusiness> selectListPool(TbBusiness user);

    void deletedList(List<Long> ids);

    TbBusiness findDetalisById(Long id);


    List followSelect(Long id);

    /**
     * 新增商机跟进记录
     * @param businessTrackVo
     */
    void followAdded(BusinessTrackVo businessTrackVo);

    /**
     * 获取商机跟进记录详细信息
     * @param businessTrackVo
     * @return
     */
    TbBusinessTrackRecord detailed(BusinessTrackVo businessTrackVo);



    /**
     * 新增商机
     *
     * @param tbBusiness
     * @return
     */
    String addTbBusiness(TbBusiness tbBusiness);

    /**
     * 修改商机
     *
     * @param tbBusiness
     * @return
     */
    String updateTbBusiness(TbBusiness tbBusiness);

    /**
     * 商机分配
     * @param assignmentVo
     */
    String assignmentTbBusiness(AssignmentVo assignmentVo);


    /**
     * 踢回公海
     *
     * @param id
     * @param reason
     * @return
     */
    String businessBack(Integer id, String reason);

    /**
     * 捞取
     * @param clueIds
     * @param userId
     */
    public String gain(Long[] clueIds, Long userId);

    public String assign(Long[] clueIds, Long userId);

    public int changeBusiness(Long clueId);

    public int updateStatus(Long id, String status);
}
